{% trans_default_domain 'FOSUserBundle' %}

<div class="row">
    
    <form class="span8 offset2 well well-large"
          action="{{ path("fos_user_registration_register") }}"
          method="post" >

            <legend>{{ 'registration.submit'|trans }}</legend>
            <hr>
	    
            <div class="row">
	        <div class="span3 offset1">
	            {{ form_label(form.name) }}
	        </div>
	        <div class="span4">
	            {{ form_errors(form.name) }}{{ form_widget(form.name) }}
	        </div>
            </div>
	    
            <div class="row">
	        <div class="span3 offset1">
	            {{ form_label(form.email) }}
	        </div>
	        <div class="span4">
	            {{ form_errors(form.email) }}{{ form_widget(form.email) }}
	        </div>
            </div>
	    
            <div class="row">
	        <div class="span3 offset1">
	            {{ form_label(form.plainPassword.first) }}
	        </div>
	        <div class="span4">
	            {{ form_errors(form.plainPassword.first) }}{{ form_widget(form.plainPassword.first) }}
	        </div>
            </div>
	    
            <div class="row">
	        <div class="span3 offset1">
	            {{ form_label(form.plainPassword.second) }}
	        </div>
	        <div class="span4">
	            {{ form_errors(form.plainPassword.second) }}{{ form_widget(form.plainPassword.second) }}
	        </div>
            </div>

            <div class="row">
	        <div class="span3 offset1"></div>
	        <div class="span4">
                    <button type="submit" class="btn btn-primary">
		        {{ 'registration.submit'|trans }}
	            </button>
	        </div>
            </div>
        
            {{ form_rest(form) }}
    
        </form>

</div>